

<div class="x-body">
    <form class="layui-form form_single" action="{:url()}" method="post">


        <div class="layui-form-item">
            <label  class="layui-form-label">
                应用
            </label>
            <div class="layui-input-block">
                <select name="app_id" >
                    {volist name='applications' id='vo'}
                    <option value="{$vo['id']}" {notempty name="$info['app_id']"}{if condition="$info['app_id'] eq $vo['id']"} selected="selected" {/if}{/notempty} >{$vo['name']}</option>
                    {/volist}
                </select>
            </div>


        </div>

        <div class="layui-form-item">
            <label  class="layui-form-label">
                名称
            </label>
            <div class="layui-input-inline">
                <input type="text" id="name" name="name"  value="{$info['name']|default=''}"
                       autocomplete="off" class="layui-input" >
            </div>


        </div>

        <div class="layui-form-item">
            <label  class="layui-form-label">
                描述
            </label>
            <div class="layui-input-inline">
                <input type="text" id="describer" name="describer"  value="{$info['describer']|default=''}"
                       autocomplete="off" class="layui-input" >
            </div>


        </div>
        <div class="layui-form-item">
            <label  class="layui-form-label">
                有效期
            </label>
            <div class="layui-input-block">
                <select name="type" >

                    <option value="1" {notempty name="$info['type']"}{if condition="$info['type'] eq 1"} selected="selected" {/if}{/notempty} >年卡</option>
                    <option value="2" {notempty name="$info['type']"}{if condition="$info['type'] eq 2"} selected="selected" {/if}{/notempty} >季卡</option>
                    <option value="3" {notempty name="$info['type']"}{if condition="$info['type'] eq 3"} selected="selected" {/if}{/notempty} >月卡</option>

                </select>
            </div>


        </div>

        <div class="layui-form-item">
            <label  class="layui-form-label">
                级别
            </label>
            <div class="layui-input-block">
                <select name="level" >

                    <option value="1" {notempty name="$info['level']"}{if condition="$info['level'] eq 1"} selected="selected" {/if}{/notempty} >普通会员</option>
                    <option value="2" {notempty name="$info['level']"}{if condition="$info['level'] eq 2"} selected="selected" {/if}{/notempty} >超级会员</option>

                </select>
            </div>


        </div>

        <div class="layui-form-item">
            <label  class="layui-form-label">
                官方价
            </label>
            <div class="layui-input-inline">
                <input type="text" id="official_price" name="official_price"  value="{$info['official_price']|default=''}"
                       autocomplete="off" class="layui-input" >
            </div>


        </div>
        <div class="layui-form-item">
            <label  class="layui-form-label">
                现价
            </label>
            <div class="layui-input-inline">
                <input type="text" id="real_price" name="real_price"  value="{$info['real_price']|default=''}"
                       autocomplete="off" class="layui-input" >
            </div>


        </div>


        <div class="box-footer">

            <input type="hidden" name="id" value="{$info['id']|default='0'}"/>

            {include file="layout/edit_btn_group"/}

        </div>

    </form>
</div>


